package com.zqxq.auth.entity.po;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2018/01/18 17:01
 */
@Data
@TableName("auth_role")
public class Role  {
    @TableId
    private Long role_id;
    private String role_name;
    private Integer role_status;//状态：0=未启用，1=启用
    private Integer order_no;
    private Timestamp create_time;
    private Timestamp update_time;
    private Long parent_role_id;//父角色id:0=顶级角色

    @Override
    public String toString() {
        return "Role{" +
                "role_id=" + role_id +
                ", role_name='" + role_name + '\'' +
                ", role_status=" + role_status +
                ", order_no=" + order_no +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", parent_role_id=" + parent_role_id +
                '}';
    }
}
